package edu.gdit.health.dao;

import edu.gdit.health.model.SysDict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Lemon-7
 * @create 2021-04-15 14:41
 */
@Mapper
public interface SysDictDao {
    @Select("select * from sys_dict")
    List<SysDict> getAll ();
    @Select("select dict_key,dict_value from sys_dict t where t.dict_type=#{dict_type} ")
    List<SysDict> getDict (String dictType);
}
